function arrayDifference(arr1,arr2){
    return arr1.concat(arr2).filter(item=>!arr1.includes(item)||!arr2.includes(item))
}
let a=[1,2,3,4];
let b=[2,3,5,6];
let res=arrayDifference(a,b);
console.log(res);
